package com.hyq.mapper;


import com.hyq.model.SUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface SUserDAO {
	
	public int validateName(String name);
	
	public int sRegister(SUser su);
	
	public SUser sLogin(SUser su);
	
	public int cOldPassword(@Param(value = "password") String password, @Param(value = "sid") int sid);

	public int updatePassword(@Param(value = "password") String password, @Param(value = "sid") int sid);

	public int updateSname(@Param(value = "sname") String sname, @Param(value = "sid") int sid);
	
	public int supdate(SUser su);
	
	public SUser ssearchById(int sid);
	
	public int sBatchDelete(String arr[]);
	
	public List<SUser> sSearch(String keyword);
	
	public List<SUser> sUpdate(int sid);
}
